<%--
  Created by IntelliJ IDEA.
  User: liliting
  Date: 2020/10/9
  Time: 下午4:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="/js/jquery-2.2.4.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function(){
            $("#codeImg").click(function(){
                $(this).attr("src","/code?"+new Date().getTime());
            });
        });
    </script>
</head>
<body>

  <form action="/doLogin" method="post" >
      用户名:<input type="text" name="username"  id="name"><br>
      密 &nbsp;&nbsp;码:<input type="password" name="password"  ><br>
     验证码:<input type="text" name="code"  ><img src="/code" id="codeImg">
      <input type="submit" value="提交" id="btn">
  </form>


</body>
</html>
